//
//  ALL.swift
//  NewMicroblog
//
//  Created by apple on 2016/10/22.
//  Copyright © 2016年 apple. All rights reserved.
//

import UIKit

/// 屏幕的宽和高
let SCREENWIDTH = UIScreen.main.bounds.width
let SCREENHEIGHT = UIScreen.main.bounds.height


let ORANGE = UIColor.orange

let MYAPPKEY = "735472608"//"807655454"
let MYREDIRECTURI = "http://www.qq.com"//"http://www.baidu.com" //
let MYSECRET = "e9cc71480b4ba0ba21763c457a9c0cb9"//"299d0639437f607f97c37e624947bffa"//

let MYWBNAME = "13757164007@sina.cn"//"jubeisi0516873@163.com"
let MYWBPASSWD = "Woaizhenzhen#))*"//"958794"


let MYROOTCONTROLLERVC = "rootvc"
/// 返回指定颜色
///
/// - parameter red:   红色值
/// - parameter green: 绿色值
/// - parameter blue:  蓝色值
///
/// - returns: 
func appointColor(red:CGFloat, green:CGFloat,blue:CGFloat)->UIColor {
    return UIColor(red: red/255.0, green: green/255.0, blue: blue/255.0, alpha: 1)
}

func MYRandomColor() -> UIColor{
    let r = CGFloat(arc4random()%256)
    let g = CGFloat(arc4random()%256)
    let b = CGFloat(arc4random()%256)
    return UIColor(red: r/255, green: g/255, blue: b/255, alpha: 1)
}

